package cn.codesea.housework_user.net.service;

import cn.codesea.housework_user.entity.User;
import cn.codesea.housework_user.net.data.Result;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import retrofit2.http.Path;

public interface UserService {

    @POST("user_register")
    Call<Result> userRegister(@Body User user);

    @FormUrlEncoded
    @POST("user_login")
    Call<Result> userLogin(@Field("phone") String phone, @Field("pwd") String pwd);

    @FormUrlEncoded
    @POST("user_getOlder")
    Call<Result> getOlder(@Field("userid") int userid);

    @POST("user_update")
    Call<Result> userUpdate(@Body User user);
}
